﻿namespace OnlineBookStorage
{
    #region usings

    using System.Windows.Controls;

    #endregion

    public partial class AddWindow : ChildWindow
    {
        #region Constructors and Destructors

        public AddWindow()
        {
            InitializeComponent();
            DataContext = new AddBookModel();
        }

        #endregion

        private void OKButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            DialogResult = true;
        }

        private void CancelButton_Click(object sender, System.Windows.RoutedEventArgs e)
        {
            DialogResult = false;
        }
    }
}